
#define NDMP_SCSI_CREATE_SESSION_IOCTL 0xAB00
#define NDMP_SCSI_TERMINATE_SESSION_IOCTL 0xAB01
#define NDMP_SCSI_LIST_SESSION_IOCTL 0xAB02

#define TAPE_DEVICE 0
#define ROBOT_DEVICE 1

#ifndef __KERNEL__
	#include <rpc/rpc.h>
	#include "user/xdr.h"
#endif

struct ndmp_session_detail {
                char ndmp_server[15];
                char user[15];
                char passwd[15];
                char device[15];
                char type;
                char id;
#ifndef __KERNEL__
		int status;
		XDR x_stream;
		int s;
		ndmp_header n_header;
		ndmp_header r_header;

#endif
};
